﻿using O.M.Production.Domain.Entity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static O.M.Production.Domain.EnumModel;

namespace O.M.Production.Domain.DTO
{
    /// <summary>
    /// 内部生产DTO
    /// </summary>
    public class internal_product_DTO : BaseModel
    {

        /// <summary>
        /// 生产编号
        /// </summary>
        public string? internal_product_id { get; set; }

        /// <summary>
        /// 生产主题
        /// </summary> 

        public string? produce_theme { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary> 

        public DateTime? bill_date { get; set; }

        /// <summary>
        /// 生产类型
        /// </summary> 

        public Produce_Type? produce_type { get; set; }

        /// <summary>
        /// 成品概要
        /// </summary> 

        /// <summary>
        /// 负责人
        /// </summary>
        public Person_In_Charge? person_in_charge { get; set; }

        /// <summary>
        /// 所在部门
        /// </summary> 
        public Department? department { get; set; }

        /// <summary>
        /// 关联项目
        /// </summary> 
        public string? associated_project { get; set; }

        /// <summary>
        /// 生产部门
        /// </summary> 
        public Produce_Department? produce_department { get; set; }

        /// <summary>
        /// 生产人员
        /// </summary> 
        public Produce_Personnel? produce_personnel { get; set; }

        /// <summary>
        /// 销售订单
        /// </summary> 
        public string? sell_order { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary> 
        public string? phone { get; set; }

        /// <summary>
        /// 备注
        /// </summary> 
        public string? remarks { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? attachment { get; set; }
        /// <summary>
        /// 生产产品关系表DTO集合
        /// </summary>
        public List<produce_product_DTO>? produce_Product_DTOs { get; set; }
        /// <summary>
        /// 产品物料关系表DTO集合
        /// </summary>
        public List<produce_material_DTO>? produce_Material_DTOs { get; set; }
    }
}
